package com.itheima.edu.info.manager.service;

import com.itheima.edu.info.manager.dao.BaseTeacherDao;
import com.itheima.edu.info.manager.dao.impl.OtherTeacherDao;
import com.itheima.edu.info.manager.domain.Teacher;
import com.itheima.edu.info.manager.factory.TeacherDaoFactory;

public interface TeacherService {

    BaseTeacherDao teacherDao = TeacherDaoFactory.getTeacherDao();
    boolean addTeacher(Teacher teacher);

    boolean isExists(String id);

    boolean delectTeacherById(String id);

    Teacher selectTeacher(String id);

    Teacher updataTeacher(Teacher teacher);

    Teacher[] findAllTeacher();
}
